<template>
	<el-card class="form-container">
		<el-form :model="seckillDetail" label-width="100px">
			<el-form-item label="" prop="id">
				<el-input v-model="userDetail.userNickName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="秒杀活动名称" prop="seckillName">
				<el-input v-model="userDetail.userNickName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="秒杀活动编号" prop="seckillCode">
				<el-input v-model="userDetail.userNickName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="秒杀开始时间 YYYY-MM-DD" prop="startDate">
				<el-input v-model="userDetail.userNickName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="秒杀结束时间 YYYY-MM-DD" prop="endDate">
				<el-input v-model="userDetail.userNickName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="秒杀活动状态 1.启用 2.禁用" prop="seckillStatus">
				<el-input v-model="userDetail.userNickName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="创建时间" prop="createTime">
				<el-input v-model="userDetail.userNickName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="修改时间" prop="updateTime">
				<el-input v-model="userDetail.userNickName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item>
				<el-button @click="close">关闭</el-button>
			</el-form-item>
		</el-form>
	</el-card>
</template>

<script>
	import {
		findSeckillDetail
	} from '@/api/activity/seckill'
	export default {
		name: 'view-seckill',
		data() {
			return {
				seckillDetail: {}
			}
		},
		created() {
			this.view(this.$route.query.id)
		},
		methods: {
			view(val) {
				findSeckillDetail(val).then(res => {
					console.log('查询返回结果', res)
					this.seckillDetail = res.data.responseData
				})
			},
			close() {
				this.$router.go(-1)
			}
		}
	}
</script>

<style>
</style>
